package com.osdp.uc.api.impl;

import com.osdp.uc.api.IUserApi;
import com.osdp.uc.dto.UserDTO;
import com.osdp.uc.service.IUcUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserApiImlp implements IUserApi {

    @Autowired
    IUcUserService ucUserService;

    @Override
    public UserDTO queryUserByUserName(String userName) {
        return ucUserService.queryUserByUserName(userName);

    }

    @Override
    public UserDTO queryUserById(String userId) {
        return  ucUserService.queryUserById(userId);
    }

    @Override
    public boolean updatePassWord(String id, String passWord) {
        return ucUserService.updatePassWord(id,passWord);
    }
}
